import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path';
import cesium from 'vite-plugin-cesium'; // 引入插件

// https://vite.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    cesium()
  ],
  resolve: {
    alias: {
      '@': resolve(__dirname, 'src'),
    },
  },
  server: {
    host: true,
    port: 9999,
    // proxy: {
    //     '/api': {
    //         target: '',
    //         changeOrigin: true,
    //         rewrite: (path) => path.replace(/^\/api/, '/api/v1')
    //     }
    // }
  },
})
